package com.chenfan.mapper;

import com.chenfan.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface UserMapper {
    @Select("select * from user where username=#{username} and password =#{password};")
    User getByUSernameAndPassword(User user);

    @Select("select * from user")
    List<User> list();

}
